package com.insurance.common.enums;

/**
 * 通用枚举类
 *
 * @version 1.0
 * @date 2020/9/20
 **/
public enum CommonProEnum {

    LOGIN_SUCCESS("00000", "登录成功"),
    LOGIN_ERROR("99999", "登录失败"),
    LOGIN_VALIDATE_ERROR("00104", "验证码错误"),
    LOGIN_INFO_ERROR("00103", "用户名密码错误"),

    GET_TOKEN_SUCCESS("00000", "获取凭证成功"),
    GET_TOKEN_ERROR("00105", "获取凭证失败"),

    LOGOUT_SUCCESS("00000", "登出成功"),
    LOGOUT_ERROR("99999", "登出失败"),

    LOGIN_OUT_SUCCESS("00000", "登出成功"),

    APPID_INFO_ERROR("00100", "非法的APPID"),
    SECRET_INFO_ERROR("00101", "密钥不正确"),
    USER_NOT_EXIT("00102", "用户不存在"),
    PASSWORD_ERROR("00103", "密码不正确"),
    MESSAGE_INFO_ERROR("00104", "短信验证码无效"),
    TOKEN_ERROR("00105", "凭证错误"),
    TOKEN_TIME_OUT("00105", "凭证超时"),
    USER_TOKEN_ERROR("00106", "无效的用户凭证"),
    AUTHENTICATION_ERROR("00107", "无接口访问权限"),
    PARAMETER_ERROR("00108", "接口请求参数错误"),
    FORM_VALIDATE_ERROR("00108", "表单校验错误"),
    SIGN_ERROR("00110", "签名错误"),
    PHONE_IS_EXIT("00109", "手机号已注册"),

    SAVE_SUCCESS("00000", "保存成功"),
    SAVE_ERROR("99999", "保存失败"),

    UPDATE_SUCCESS("00000", "修改成功"),
    UPDATE_ERROR("99999", "修改失败"),

    DELETE_SUCCESS("00000", "删除成功"),
    DELETE_ERROR("99999", "删除失败"),

    OPERATION_SUCCESS("00000", "操作成功"),
    OPERATION_ERROR("99999", "操作失败"),
    OPERATION_FREQUENCY("99999", "操作频繁"),

    QUERY_SUCCESS("00000", "查询成功"),
    QUERY_ERROR("99999", "查询失败"),

    QUERY_ERROR_NODATA("99999", "数据不存在"),
    DATA_ERROR_SAME("99999", "存在相同数据"),

    AUTHENTICATION("00000", "企业已认证"),
    UN_AUTHENTICATION("111111", "企业未认证"),
    UN_PASS("222222", "企业已认证, 未审核"),

    SYSTEM_ERROR("-1", "系统繁忙");

    private String code;

    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    CommonProEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
